Skip to content

Radiance cache (GI-1.2 multi-cache GI) into main - #41

Merged
DennisSmolek merged 348 commits into
mainfrom
rc-into-main
Nov 26, 2026
Merged

DennisSmolek merged 348 commits into
mainfrom
rc-into-main

Conversation

@DennisSmolek

@DennisSmolek DennisSmolek commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Merges the GI-1.2 radiance-cache track into main (334 commits), with main's tuning-pass work merged in.

What comes in

  • Radiance cache: screen probes, the world hash grid, the probe filter, SSGI (off by default) and the GI denoiser. The denoiser comes from pmndrs/denoiser (denoiser-ffx: Gi1Denoiser, a port of AMD GI-1.0's image-space GI denoiser denoiser#33), linked at a pinned commit through linkedSiblings.
  • Opt-in experiments, with defaults unchanged (DECISIONS 2026-11-23): the SHaRC world cache, budgeted cells, and the NRC tail. The tail uses @pathtracer/mlp as an optional sibling.
  • Platform: the sky bit in contract, the change-events tracker, provides.worldSpaceIrradiance, shader-f16 and workgroup-memory requests, and the public fingerprintDifferences/halfToFloat.
  • Viewer: the compare-toggle registry and the radiance-cache debug views. giDebugColor takes screenUV, and DDGI's giProbeIrradiance is kept.
  • From main: TU.1/2/4/5 and DV-01/03/06/07/08/12 (resetProbes). TASKS Later stays main's issue index, with P6.4's follow-ups listed under it.
  • Fix: examples/10-debug passes screenUV to giDebugColor.

Verified on the RTX 3060 Laptop:

  • Lint, typecheck, 1,886 unit tests, build, build:apps and examples:build all pass.
  • A clean clone installs after --fetch with no pathtracer clone, and dist and examples carry no local paths or pathtracer code.
  • GPU: 95 of the 98 non-manual pages pass on the first run.
    • examples-site passes after the fix above.
    • wgsl-error fails by design under --filter.
    • radiance-cache-accuracy (manual) passes.

radiance-cache-change-noise now passes. It failed on radiance-cache before this merge, and the merge did not cause it.

  • Why it failed: RC4.2's probe filter and D64 halved E9-off's noise, so the old ratio gate (1.5×) tripped even though E9 adds the same amount as before.
  • What the gate measures now: the visible noise E9 adds (per pixel, after removing the frame's mean change). Its allowance is calibrated as P6.2b's was: 0.5 × the noise with the filter and D64 off. That is a new committed toggle, rcfilter.
  • The page's windows are long enough to settle now: two-room settles in 60 frames with E9, 108 without.
  • The box end-error check averages two runs.
  • The gate is loose: a probe-side noise mutation uses 89% of the allowance and still passes. That is in TASKS as a follow-up, and DECISIONS 2026-11-24 records the call.

Not run: Intel UHD, the Mac, and timing (every timing run was INVALID because of throttling).

DennisSmolek and others added 30 commits November 19, 2026 03:33
…es; purged-tile scratch; AccumulateRadiance race; cache cleared on size changes; emission is D21's), design doc, PROGRESS, TASKS
…SKS status; DECISIONS 2026-11-19: fix Capsaicin's errors by default, keep a switch
…uilt from GI-1.0, not a Capsaicin port; fix its errors outright
…ered D34 -> D35, D35 -> D36 (RC2.2 took D34); RC3.3 docs and comments point at DECISIONS 2026-11-19 (Capsaicin's errors fixed by default behind a switch, not yet)
…iased second bounce (no 1/(1-p) on a kept-ray mean, misses count), bypass light to the right probe ray weighted by 1/(1-p) or kept with the second bounce; world-cache page: furnace at the true second bounce, corner bypass additions predicted, strips open scene (section 13)
…, patch, ray guiding, hysteresis), platform screen history, D36 empty-cell fix with CPU model

Co-Authored-By: Claude <noreply@anthropic.com>
…i research branch: research/gi-1.0 (plan, paper and source notes, native runs, siblings, the AMD issue draft; PDFs git-ignored, not redistributable), tools/reference/capsaicin (launcher, scene and measurement scripts, debug-view patch), Capsaicin v1.3 as submodule native/capsaicin at 914b915
…ity page, register D40-D45, NOTES

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…with no sample (D37 in sparse cells); world-cache page: strips averages count zeros, corner checks unlit own light, section 14 (every first bounce bypasses, rays average the second bounce); overflow page counts short back-face hits
…ells for section 14; allowances 0.5%; strips rays average with zeros at 1%; RC3.4 done-when
…lity page covers Cornell

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…38 theirs, D40-D45 ours

Co-Authored-By: Claude <noreply@anthropic.com>
…story (D47), platform scan rebind, history scans sized per screen, zero normals stay zero

Co-Authored-By: Claude <noreply@anthropic.com>
…r cache test in radiance-cache-temporal, stability with jitter on and off

Co-Authored-By: Claude <noreply@anthropic.com>
…floor, coded sky and sun, ceiling only, corner)
# Conflicts:
#	.github/workflows/ci.yml
#	.github/workflows/deploy-pages.yml
#	PROGRESS.md
#	docs/design/radiance-cache.md
#	package.json
#	packages/ddgi-core/src/techniques/radiance-cache/radiance-cache-technique.ts
#	tools/gpu/server.ts
#	tools/linked-siblings.ts
…the lead: the 32 px strips), NOTES (the column cells after D63)
…rror (2%, the lead's ruling: the column effect, D63, moves the base) for the furnace, the strips and the sky strips; 8 px stays absolute at 2% (strips tightened from 6%); absolute 32 px readings recorded
…the composite reads (the GI denoiser's output, on by default), asserts it exists at the screen's size, and scans it for NaN, infinite and negative values; tolerances unchanged
…ASKS row ready to merge; NOTES (a cell lit once a frame shows a rare blocked ray whole)
… mutations, lag and flicker per hit vs budgeted), TASKS
…ain)

main's tuning pass (TU.1, TU.2, TU.4, TU.5; DV-01, DV-03, DV-06, DV-07,
DV-08, DV-12 resetProbes; M4 accuracy rows; DECISIONS 2026-11-19; the
sibling-migration plan; TASKS Later as an issue index) onto the
radiance-cache track.

Conflicts resolved keeping both sides:
- DDGI shading module docs and test: giDebugColor keeps radiance-cache's
  screenUV argument and gains main's giProbeIrradiance.
- viewer url-state: the screen-input and radiance-cache debug views and
  compare toggles beside main's probecolor=irradiance.
- docs/api/platform.md: provides.worldSpaceIrradiance, giDebugColor with
  screenUV, main's giRadiance issue link and technique functions; both
  2026-11-19 revisions.
- DECISIONS: radiance-cache's 2026-11-23/20/19 entries and main's
  2026-11-19 entries under one 2026-11-19 heading.
- PROGRESS: both sides' entries, radiance-cache's first.
- TASKS Later: main's issue index; P6.4's review follow-ups (not yet
  issues) kept below it.
- tools/docs/snippets regenerated with doc-snippets --write.
… examples-site failed on its gi-only view: too few arguments
…TASKS Later's issue index; the radiance cache's hits stay on surface.albedo after DV-08
… it; its doc says it reads the raw E before RC4.3's denoiser, and why two-room's E9 ratio rose after RC4.2
….2's probe filter and D64 (E9 off's noise halved, E9's own rise unchanged); gate left to the lead
…icin's value on), so E9's noise gate can run its calibration configuration by name; test
…9 off's with the probe filter and D64 off (P6.2b's calibration), ratio recorded only; 400 settle frames, settled image frames 381-400, lag read to 300, motion held 400 (DECISIONS 2026-11-24)
…t P6.2b's calibration; register E9, design and PROGRESS with the new numbers, the longer windows, and the mutations (none fails it: the page's noise is mostly E's mean following faster)
…change (neighbours scaled to the frame's mean), the plain second difference recorded as sharpness; the box runs twice and its end-error gate takes the mean (lead, 2026-11-24)
…of E; a probe-side mutation passes inside the allowance) in the page comment, register E9, design, DECISIONS 2026-11-24 and PROGRESS
@DennisSmolek
DennisSmolek marked this pull request as ready for review November 23, 2026 21:08
DennisSmolek and others added 2 commits November 26, 2026 11:34
PROGRESS and DECISIONS conflicts only: both sides kept, main's 2026-11-20 entries placed among the radiance-cache entries by date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the main merge

publish-workflow.test.ts pinned ci.yml's steps without the sibling fetch step rc-into-main added, so PR #41 failed on Ubuntu (the describe skips on Windows). The step stays until Gi1Denoiser is published in denoiser on npm (pmndrs/denoiser#33).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DennisSmolek
DennisSmolek merged commit 025ece2 into main Nov 26, 2026
2 checks passed
@DennisSmolek
DennisSmolek deleted the rc-into-main branch November 26, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant